package com.itedge.infrastructure.taskdata;

import java.util.Date;

/**
 * Util class providing some common used functionality for task data instances as static methods.
 * 
 * @author jhe
 *
 */
public class TaskDataUtil {
	
	/**
	 * Sets last updated info on task data instance in standard way, 
	 * last updated is set to new date and last updated by to userName parameter.
	 * 
	 * @param taskData
	 * @param userName
	 */
	public static void setLastUpdate(ITaskDataEntity taskData, String userName) {
		taskData.setLastUpdatedBy(userName);
		taskData.setLastUpdatedDate(new Date());
	}

}
